package com.pubinfo.passbook.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "ftp")
public class FtpUploadConfig {
  
  private electronic electronic;
  private enclosure enclosure;
  
  @Data
  public static class enclosure {
    private String ip;
    private int port;
    private String username;
    private String password;
    private String workpath;
    private String domain;
  }
  
  @Data
  public static class electronic {
    private String ip;
    private int port;
    private String username;
    private String workpath;
  }
}
